package by.yakusekmaxim.bookgid.services;

import java.util.List;

import javax.persistence.metamodel.SingularAttribute;

import org.springframework.transaction.annotation.Transactional;

import by.yakusekmaxim.bookgid.datamodel.Series;

public interface SeriesService {

	Long getCount();
	
	Series get(Long id);

    @Transactional
    void saveOrUpdate(Series series);

    @Transactional
    void delete(Series series);

    @Transactional
    void deleteAll();
    
    @Transactional
    List<Series> getAll();
    
	@Transactional
	List<Series> getAllSeries (SingularAttribute<Series, ?> attr,
			boolean ascending, int startRecord, int pageSize);
	
	

}
